int sum(int a, int b)
{
	return a + b;
}
int change1(int &a)
{
	a = 7;
	return 3;
}
int change2(int* a)
{
	*a = 6;
	return 14;
}

int mainFunc(int arg1, int arg2, int arg3)
{
	int c = change1(arg1) + change2(&arg2) + arg3;
	c = sum(c, arg1);
	c = sum(c, arg2);
	return c;
}